import moment from "moment"

 
const contract = [
	{
		value: "1",
		label: "服务合同"
	},
	{
		value: "2",
		label: "采购宝"
	},
	{
		value: "3",
		label: "控货企信宝"
	},
	{
		value: "4",
		label: "订单融"
	},
	{
		value: "5",
		label: "点价代采"
	},
	{
		value: "6",
		label: "代订货"
	},
]
const cType = [
	{
		value: "1",
		label: "款到合同生效"
	},
	{
		value: "2",
		label: "带款提货"
	},
	{
		value: "3",
		label: "款到卸货"
	},
	{
		value: "4",
		label: "企信宝"
	},
	{
		value: "5",
		label: "赊销宝"
	},
	{
		value: "6",
		label: "控货企信宝"
	},
	{
		value: "7",
		label: "采购宝"
	},
	{
		value: "8",
		label: "订单融"
	},
	{
		value: "9",
		label: "点价代采"
	},
	{
		value: "10",
		label: "款到放行"
	},
	

]
 
const billType = [{
		value: "01",
		label: "收现金"
	},
	{
		value: "02",
		label: "银行转账"
	},
	{
		value: "03",
		label: "信用证"
	},
	{
		value: "04",
		label: "票据"
	},
	{
		value: "05",
		label: "收现金"
	},
	{
		value: "06",
		label: "--" //退赔登记
	},
	{
		value: "07",
		label: "三方转"
	},
	{
		value: "08",
		label: "承兑贴现"
	},
	{
		value: "09",
		label: "托收到账"
	},
];
const serviceType = [{
		value: "1",
		label: "企信宝"
	},
	{
		value: "2",
		label: "赊销宝"
	},
	{
		value: "3",
		label: "控货企信宝"
	},
	{
		value: "4",
		label: "采购宝"
	},
	{
		value: "5",
		label: "订单融"
	},
	{
		value: "6",
		label: "点价代采"
	},
	{
		value: "7",
		label: "代订货"
	},
]
const serviceType2 = [{
		value: "1",
		label: "企信宝"
	},
	{
		value: "2",
		label: "采购宝"
	},
	{
		value: "3",
		label: "控货企信宝"
	},
	{
		value: "4",
		label: "订单融"
	},
	{
		value: "5",
		label: "赊销宝"
	},
	{
		value: "6",
		label: "企信宝二次推送"
	},
]
const signingType = [{

		value: "1",
		label: "电子合同"
	},
	{
		value: "2",
		label: "线下合同"
	},
]

const signingStatus = [{

		value: "1",
		label: "待签署"
	},
	{
		value: "2",
		label: "已签署"
	},
	{
		value: "3",
		label: "存疑"
	},
]
const receiptStatus = [{

		value: "1",
		label: "待确认"
	},
	{
		value: "2",
		label: "已确认"
	},
	{
		value: "3",
		label: "存疑"
	},
]
const orderStatus = [{
		value: "1",
		label: "待发货"
	},
	{
		value: "2",
		label: "待开票"
	},
	{
		value: "3",
		label: "已完成"
	},
]
const contractType = [{
		value: "1",
		label: "进行中"
	},
	{
		value: "2",
		label: "已发货"
	},
	{
		value: "3",
		label: "已完成"
	},
]
const transportMode = [{
		value: "1",
		label: "一票送到"
	},
	{
		value: "2",
		label: "华溢物流"
	},
	{
		value: "3",
		label: "需方派车自提"
	},
	{
		value: "4",
		label: "供方向需方转货权（订单融）"
	},

]
const projectType = [{
		value: "1",
		label: "库存销售单"
	},
	{
		value: "2",
		label: "库存配送单"
	},
	{
		value: "3",
		label: "直发销售单"
	},
	{
		value: "4",
		label: "直发配送单"
	},
	{
		value: "5",
		label: "零调销售单"
	},
	{
		value: "6",
		label: "零调配送单"
	},
]

const creditStatus = [{
		value: "-1",
		label: "待推荐"
	},
	{
		value: "0",
		label: "待激活"
	},
	{
		value: "1",
		label: "待激活"
	},
	{
		value: "2",
		label: "已激活"
	},
	{
		value: "3",
		label: "已注销"
	},

]
const dict = {
	billType: billType,
	serviceType: serviceType,
	signingStatus: signingStatus,
	orderStatus: orderStatus,
	contractType: contractType,
	projectType: projectType,
	signingType: signingType,
	creditStatus: creditStatus,
	serviceType2: serviceType2,
	cType:cType,
	contract:contract,
	receiptStatus,
	getName: (dictName, value) => {
		const info = dict[dictName].find(item => item.value == value)
		return info && info.label || '--'
	}
}
export default dict